﻿@page
@model SessionUse.Pages.Test.SVGTestModel
@{
    string message = "This is a test of SVG rendering in Razor Pages."; 
}

<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
    <rect width="100%" height="100%" rx="20" ry="20" fill="lightblue" />
    <text x="10" y="20" font-family="Arial" font-size="16" fill="black">@message</text>
    <circle cx="100" cy="100" r="50" fill="red" />
</svg>

<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
    <rect x="0" y="0" rx="10" ry="10" width="200" height="200" stroke="black" fill="none" ></rect>
    <foreignObject x="20" y="20" width="160" height="160">
        <p>@message</p>
    </foreignObject>
</svg>